import request from '@/utils/request'

// 查询班级科目排课详情列表
export function listScheduleInfo(query) {
  return request({
    url: '/edu/scheduleInfo/list',
    method: 'get',
    params: query
  })
}

export function getListByTechUserId(teachUserId) {
  return request({
    url: '/edu/scheduleInfo/getListByTechUserId/' + teachUserId,
    method: 'get'
  })
}

// 查询班级科目排课详情详细
export function getScheduleInfo(scheduleInfoId) {
  return request({
    url: '/edu/scheduleInfo/' + scheduleInfoId,
    method: 'get'
  })
}

// 新增班级科目排课详情
export function addScheduleInfo(data) {
  return request({
    url: '/edu/scheduleInfo',
    method: 'post',
    data: data
  })
}

// 修改班级科目排课详情
export function updateScheduleInfo(data) {
  return request({
    url: '/edu/scheduleInfo',
    method: 'put',
    data: data
  })
}

// 删除班级科目排课详情
export function delScheduleInfo(scheduleInfoId) {
  return request({
    url: '/edu/scheduleInfo/' + scheduleInfoId,
    method: 'delete'
  })
}

// 导出班级科目排课详情
export function exportScheduleInfo(query) {
  return request({
    url: '/edu/scheduleInfo/export',
    method: 'get',
    params: query
  })
}